/**
 * 
 */
package com.fortune.rainshine.system.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import com.fortune.rainshine.config.FeignConfig;
import com.fortune.rainshinecommon.base.MsgModel;
import com.fortune.rainshinecommon.base.ParmsModel;
import com.fortune.rainshinecommon.model.CustomerModel;

/**
 * @author Administrator
 *
 */
@FeignClient(value = "rain-shine-system",configuration = FeignConfig.class)
@RestController
public interface CustomerService {

	@PostMapping(value = "/customer/add")
	MsgModel add(CustomerModel model);

	@PostMapping(value = "/customer/list")
	MsgModel list(ParmsModel parm);

	@PostMapping(value = "/customer/update")
	MsgModel update(CustomerModel model);

	@PostMapping(value = "/customer/delete")
	MsgModel delete(CustomerModel model);

	@PostMapping(value = "/customer/getCustomer")
	CustomerModel getCustomerById(Integer customerId);

	@PostMapping(value = "/customer/back")
	MsgModel back(CustomerModel model);
	
	@PostMapping(value = "/customer/listActive")
	MsgModel listActive(ParmsModel parm);

}
